import request from '@/utils/request';

// 获取流程代理设置列表
export async function listTemplateAndAgent(parmas) {
    return request('/api/workflowweb/process/proxy/config/v1/list', {
        method: 'POST',
        data: parmas
    });
}

/*
* 代理人设置
* @param id
* @param proxyEnable
* @param proxyUserCode
* @param proxyUserName
*
* */
export async function saveOrUpdate(parmas) {
    return request('/api/workflowweb/process/proxy/config/v1/saveOrUpdate', {
        method: 'POST',
        data: parmas
    });
}
